home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / FALCON / CPX / CONFIG.LC / XSTRUCTS.H < prev   
Encoding:
C/C++ Source or Header  |  2001-02-10  |  1.5 KB  |  57 lines

  1. /*
  2.  * Internal structures for XCONTROL...
  3.  * This file needs to be included BEFORE slots.h or cpxhandl.h are
  4.  * loaded.
  5.  * An example can be:
  6.  *
  7.  *  #include "xcontrol.h"        ;XCONTROL RCS objects 
  8.  *  #include "xstructs.h"        ;This file...
  9.  *  #include "cpxdata.h"        ;Inter-cpx data structures
  10.  *  #include "cpxhandl.h"        ;cpxhandl.c prototypes
  11.  *  #include "slots.h"            ;slots.c prototypes
  12.  */
  13. #include <alt\portab.h>
  14. #include "cpxhead.h"                /* CPX HEADER FORMAT */ 
  15.  
  16. typedef struct _Prghead
  17. {
  18.     int    magic;
  19.     long    tsize,
  20.         dsize,
  21.         bsize,
  22.         ssize;
  23.     int    fill[5];
  24. } Prghead;
  25.  
  26.  
  27. /*
  28.  * Internal data structure for storing cpx headers in a linked list.
  29.  * Data structure manipulation is in cpxhandl.c
  30.  * We INCLUDE the header so that it can be sized and changed without
  31.  * too much hassle. Note that there are some additional requirements
  32.  * for the nodes than just the header information.
  33.  */
  34. typedef struct cpxnode
  35. {
  36.    char      fname[ 14 ];     /* filename...   */
  37.    int         vacant;         /* 1 = not vacant*/
  38.    int         SkipRshFix;     /* Always 0 if non-resident. For residents
  39.                      * 0 first time CPXinit is called and then 
  40.                      * set to 1 so it will skip it thereafter
  41.                      */
  42.    long      *baseptr;             /* Basepage ptr
  43.                      * for resident cpxs
  44.                      */
  45.    struct    cpxnode   *next;     /* Next cpxnode      */
  46.    CPXHEAD   cpxhead;         /* cpx header struct */
  47.                  /* NOTE: THESE TWO FIELDS MUST REMAIN
  48.                   * CONTIGUOUS FOR ALL TIME!!!
  49.                   */
  50.    Prghead   prghead;         /* program header of CPX */
  51.    
  52. } CPXNODE;
  53.  
  54.  
  55.  
  56.  
  57.